package aop.common.controller;

import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import aop.common.model.CommonService;


@Controller
public class CommonController {
	@Resource(name="commonServiceImpl")
	private CommonService commonService;
	/**
	 * @author 이상호
	 * @date 2014.07.04
	 * left 로그인 회원 순위
	 */
	@RequestMapping("loginMemberRank.do")
	@ResponseBody
	public List<HashMap> loginMemberRank(){
		return commonService.loginMemberRank();
	}
	
	/**
	 * @author 이상호
	 * @date 2014.07.04
	 * left 검색어 순위
	 */
	@RequestMapping("searchWordRank.do")
	@ResponseBody
	public List<HashMap> searchWordRank(){
		return commonService.searchWordRank();
	}
}
